package annotation.demo1;

public class TestAnnotation {

    public static void main(String[] args) {
        @SuppressWarnings("unused")
        int a  = 10;//变量没使用警告
    }

    @Deprecated
    public void print(){
        System.out.println("过时的方法");
    }

    @Override
    public String toString(){
        return "重写的toString方法()";
    }
}
